import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'admin',
    component: () => import('@/views/admin/AdminView.vue'),
    children: [
      { name: "index", path: "index", component: () => import("../views/admin/DataMarket/IndexView.vue") },
      { name: "boxoffice", path: "boxoffice", component: () => import("../views/admin/DataMarket/BoxOffice.vue") },
      //如果没有指定路由，跳转到dash页面
      { path: "", redirect: "index" }
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
